package syn;

import java.util.ArrayList;
import java.util.List;

public class UnsafeThread
{
    public static void main(String[] args)
    {
        List<String> list=new ArrayList<String>();
        for(int i=0;i<100;i++)
        {
            new Thread(()->{
                list.add(Thread.currentThread().getName());
            }).start();
        }
        System.out.println(list.size());
    }
}
